#include "img_struct.h"

statistics_config_t ov2710_tile_config = {
	1,
	1,

	24,
	16,
	128,
	48,
	160,
	250,
	160,
	250,
	0,
	16383,

	12,
	8,
	0,
	8,
	340,
	512,

	8,
	5,
	256,
	10,
	448,
	816,
	448,
	816,

	0,
	16383,
};

 line_t ov2710_50hz_lines[] = {
		{
		{{SHUTTER_1BY8000, ISO_100, 0}}, {{SHUTTER_1BY100, ISO_100,0}}
		},

		{
		{{SHUTTER_1BY100, ISO_100, 0}}, {{SHUTTER_1BY100, ISO_300, 0}}
		},

		{
		{{SHUTTER_1BY50, ISO_100, 0}}, {{SHUTTER_1BY50, ISO_800,0}}
		},

		{
		{{SHUTTER_1BY30, ISO_100, 0}}, {{SHUTTER_1BY30, ISO_6400,0}}
		}
};

 line_t ov2710_60hz_lines[] = {
		{
		{{SHUTTER_1BY8000, ISO_100, 0}}, {{SHUTTER_1BY120, ISO_100,0}}
		},

		{
		{{SHUTTER_1BY120, ISO_100, 0}}, {{SHUTTER_1BY120, ISO_300, 0}}
		},

		{
		{{SHUTTER_1BY60, ISO_100, 0}}, {{SHUTTER_1BY60, ISO_800,0}}
		},

		{
		{{SHUTTER_1BY30, ISO_100, 0}}, {{SHUTTER_1BY30, ISO_6400,0}}
		}
};

img_awb_param_t ov2710_awb_param = {
	{
		{1729, 1024, 1562},	//AUTOMATIC
		{ 975, 1024, 2300},	//INCANDESCENT
		{1175, 1024, 2183},	//D4000
		{1463, 1024, 1791},	//D5000
		{1729, 1024, 1562},	//SUNNY
		{1809, 1024, 1458},	//CLOUDY
		{1750, 1024, 1400},	//FLASH
		{1150, 1024, 1900},	//FLUORESCENT
		{1575, 1024, 1350},	//FLUORESCENT_H
		{1600, 1024, 1380},	//UNDER WATER
		{1375, 1024, 1600},	//CUSTOM
		{1463, 1024, 1791},	//AUTOMATIC OUTDOOR
	},
	{
		12,
		{
		{ 700, 1350, 1800, 3000, -1400, 3120, -1400, 4500,2000,         0, 1000, 2200, 1},	// 0	INCANDESCENT
		{ 850, 1600, 1400, 2900, -1400, 3120, -1400, 4950,1700,   -300, 1700,   600, 2},	// 1	D4000
		{1000, 1800, 1300, 2500, -1200, 2900, -1500, 4650,1700, -1000, 1700,-250, 4},	// 2	D5000
		{1200, 2100, 1100, 2300, -1000, 2670, -1200, 4150,1700, -1600, 1700,-850, 8},	// 3	SUNNY
		{1400, 2300, 1000, 2100,   -800, 2370,  -600, 3000,  500,     -50,   550,  700, 4},	// 4	CLOUDY
		{2300, 2850, 1750, 2250, -1000, 4050, -1000, 4900,1000, -1000, 1000,  -80, 0 },	// 5	PROJECTOR
		{1350, 1900, 1900, 2650, -2200, 5550, -1900, 6100,2000,-1600,  1400,  180,-1},	// 6	GREEN REGION
		{   0,    0,    0,    0,     0,    0,     0,    0,   0,   0,    0,    0, 0 },	// 7	FLASH
		{   0,    0,    0,    0,     0,    0,     0,    0,   0,   0,    0,    0, 0 },	// 8	FLUORESCENT
		{   0,    0,    0,    0,     0,    0,     0,    0,   0,   0,    0,    0, 0 },	// 9	FLUORESCENT_2
		{   0,    0,    0,    0,     0,    0,     0,    0,   0,   0,    0,    0, 0 },	// 10 FLUORESCENT_3
		{   0,    0,    0,    0,     0,    0,     0,    0,   0,   0,    0,    0, 0 }	// 11 CUSTOM
		},
	},
	{	{ 0 ,6},	//LUT num. AUTOMATIC  INDOOR
		{ 0, 1},	//LUT num. INCANDESCENT
		{ 1, 1},	//LUT num. D4000
		{ 2, 1},	//LUT num. D5000
		{ 2, 5},	//LUT num. SUNNY
		{ 4, 3},	//LUT num. CLOUDY
		{ 7, 1},	//LUT num. FLASH
		{ 8, 1},	//LUT num. FLUORESCENT
		{ 9, 1},	//LUT num. FLUORESCENT_H
		{11, 1},	//LUT num. UNDER WATER
		{11, 1},	//LUT num. CUSTOM
		{ 0, 7},	//LUT num. AUTOMATIC  OUTDOOR
	 }
};
u32 ov2710_ae_agc_dgain[AGC_DGAIN_TABLE_LENGTH]=
{
	956,
	891,898,902,906,915,916,921,926,929,936,942,947,950,957,959,968,
	907,911,912,919,926,931,934,940,884,888,895,897,905,909,915,921,
	907,905,911,916,922,927,935,938,883,887,892,897,903,909,913,918,
	870,879,884,889,894,899,903,909,880,884,889,894,898,902,907,911,
	904,908,914,921,926,929,932,938,890,896,902,908,910,917,923,928,
	891,892,897,900,906,910,917,919,882,891,894,900,904,909,914,920,
	911,920,924,929,935,936,940,947,905,910,917,921,929,932,937,943,
	907,912,920,924,933,938,942,947,913,917,922,927,932,935,942,946,
	903,909,914,917,923,928,933,938,943,948,952,960,964,970,972,980,
	917,921,926,933,936,942,947,951,899,902,908,914,918,922,928,934,
	912,918,923,927,934,939,946,949,897,901,907,913,918,925,930,938,
	888,891,895,901,907,911,917,921,881,885,891,897,900,905,909,915,
	903,908,912,918,923,927,934,938,900,904,909,915,921,925,929,932,
	893,897,903,907,913,918,921,927,894,899,902,908,914,919,924,929,
	915,921,924,929,936,941,945,950,914,919,924,929,934,938,944,950,
	923,928,933,937,942,946,953,957,927,933,937,943,949,954,958,963,
	915,920,925,930,936,940,945,950,955,961,966,971,976,981,987,992,
	933,938,943,948,954,959,964,969,916,921,925,931,936,942,947,951,
	931,936,941,946,951,956,961,966,914,919,924,932,936,942,947,952,
	905,910,915,920,926,930,935,940,896,901,906,911,916,920,925,931,
	922,927,932,936,942,946,952,957,917,922,927,932,938,944,949,951,
	911,915,921,927,932,936,942,947,909,915,919,924,930,935,939,945,
	934,939,944,949,954,960,965,969,933,939,944,950,955,961,966,971,
	938,944,949,954,959,964,970,975,942,947,952,957,962,967,972,977,
	936,941,946,952,957,962,967,973,986,998,1005,1011,1018,1025,1032,1015,
	953,959,964,969,974,979,985,991,934,939,945,950,955,960,965,971,
	950,955,960,965,970,975,981,985,935,940,945,950,955,960,966,971,
	925,931,936,941,946,951,955,960,917,922,926,932,937,942,947,952,
	943,949,955,960,965,971,976,981,939,944,949,954,960,964,970,976,
	936,941,946,951,956,961,966,971,934,939,944,949,954,959,964,970,
	955,961,965,971,975,981,987,992,957,962,967,972,978,983,988,993,
	960,966,971,976,981,987,992,997,962,968,973,979,984,990,996,1002,
	938,943,948,954,959,964,969,975,980,985,991,996,1001,1006,1012,1018,
	957,962,968,972,977,983,988,993,935,940,944,950,954,960,966,971,
	950,956,961,966,971,977,982,987,936,941,946,951,956,962,966,972,
	925,930,935,940,945,951,955,962,918,923,927,932,937,942,947,952,
	944,950,955,961,967,972,977,982,939,944,949,954,959,965,970,975,
	936,941,945,951,956,960,966,971,934,938,943,948,954,959,964,969,
	956,961,967,972,977,982,988,993,959,964,969,974,980,985,990,996,
	970,975,981,986,991,996,1002,1008,985,991,996,1002,1007,1013,1018,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	};
u32 ov2710_ae_sht_dgain[SHUTTER_DGAIN_TABLE_LENGTH] =
{
	1024,
	1022,1022,1022,1022,1022,1022,1022,1022,1021,1021,1021,1021,1020,1021,1021,1021,
	1021,1021,1022,1022,1022,1022,1022,1022,1022,1022,1022,1022,1023,1023,1023,1022,
	1023,1023,1023,1023,1023,1023,1023,1023,1024,1024,1024,1024,1024,1024,1024,1023,
	1023,1023,1023,1023,1024,1023,1023,1024,1024,1024,1024,1024,1024,1025,1025,1025,
	1025,1026,1026,1026,1026,1027,1026,1027,1027,1027,1027,1027,1027,1027,1027,1028,
	1028,1028,1028,1027,1027,1027,1026,1026,1026,1026,1026,1026,1026,1028,1026,1026,
	1026,1026,1026,1026,1027,1027,1027,1027,1027,1026,1026,1027,1027,1027,1028,1027,
	1027,1028,1027,1027,1028,1028,1028,1028,1029,1030,1029,1030,1031,1030,1031,1032,
	1032,1032,1032,1032,1032,1032,1033,1032,1032,1033,1032,1033,1033,1032,1033,1032,
	1031,1032,1031,1032,1032,1031,1033,1033,1032,1033,1032,1032,1032,1032,1033,1032,
	1032,1032,1032,1033,1033,1032,1033,1033,1032,1033,1033,1033,1034,1034,1034,1033,
	1034,1034,1034,1034,1034,1034,1035,1034,1034,1035,1034,1035,1035,1035,1035,1035,
	1035,1035,1035,1035,1036,1036,1036,1037,1036,1037,1036,1036,1036,1036,1036,1036,
	1036,1036,1036,1036,1036,1035,1034,1034,1034,1034,1035,1035,1034,1037,1036,1035,
	1036,1036,1036,1037,1037,1037,1037,1037,1037,1037,1037,1037,1036,1037,1037,1037,
	1037,1037,1038,1037,1037,1037,1037,1037,1038,1039,1038,1039,1039,1040,1041,1041,
	1041,1042,1041,1042,1042,1042,1043,1044,1044,1044,1043,1044,1044,1042,1044,1044,
	1042,1043,1041,1041,1041,1040,1040,1041,1040,1041,1042,1041,1042,1040,1041,1042,
	1039,1042,1042,1040,1042,1041,1041,1043,1041,1041,1043,1042,1043,1044,1043,1043,
	1044,1042,1044,1044,1042,1045,1042,1043,1046,1043,1044,1045,1046,1046,1047,1046,
	1048,1047,1047,1050,1048,1047,1050,1048,1049,1050,1048,1051,1049,1048,1050,1048,
	1047,1049,1047,1047,1048,1045,1046,1047,1045,1046,1046,1045,1047,1045,1045,1048,
	1046,1047,1049,1045,1047,1049,1046,1050,1049,1046,1049,1047,1047,1049,1047,1047,
	1048,1047,1048,1050,1047,1048,1050,1047,1049,1050,1046,1049,1047,1045,1048,1045,
	1046,1048,1045,1047,1047,1046,1050,1049,1047,1050,1048,1048,1051,1048,1049,1053,
	1049,1052,1053,1050,1053,1054,1051,1055,1052,1053,1055,1054,1053,1057,1053,1054,
	1054,1051,1055,1053,1051,1054,1054,1052,1054,1051,1050,1055,1049,1052,1053,1051,
	1053,1054,1051,1053,1053,1052,1055,1051,1052,1057,1051,1054,1055,1052,1055,1055,
	1053,1057,1056,1055,1058,1055,1054,1058,1056,1057,1059,1053,1059,1056,1055,1058,
	1055,1054,1057,1055,1057,1057,1056,1057,1058,1057,1057,1059,1056,1061,1057,1058,
	1059,1058,1055,1059,1056,1056,1060,1058,1059,1060,1055,1059,1058,1056,1060,1058,
	1056,1059,1057,1058,1059,1058,1059,1061,1058,1062,1061,1057,1063,1061,1060,1063,
	1058,1059,1062,1061,1062,1061,1059,1062,1062,1060,1063,1065,1062,1065,1063,1063,
	1065,1060,1063,1063,1062,1063,1063,1059,1063,1061,1059,1064,1060,1058,1062,1060,
	1060,1062,1059,1059,1058,1055,1059,1057,1057,1058,1056,1054,1060,1054,1054,1057,
	1057,1053,1058,1050,1053,1056,1050,1057,1055,1058,1058,1053,1056,1063,1056,1056,
	1057,1057,1054,1057,1052,1063,1059,1060,1060,1060,1058,1061,1054,1059,1061,1057,
	1060,1061,1054,1059,1057,1059,1060,1058,1061,1064,1062,1063,1060,1062,1062,1059,
	1060,1066,1063,1065,1066,1066,1067,1062,1065,1065,1058,1063,1063,1062,1060,1059,
	1062,1065,1063,1056,1064,1061,1063,1064,1062,1070,1068,1064,1065,1062,1065,1070,
	1061,1063,1065,1069,1069,1061,1064,1064,1063,1072,1063,1057,1058,1064,1059,1064,
	1063,1066,1066,1062,1065,1067,1060,1067,1064,1066,1070,1066,1064,1067,1064,1066,
	1060,1056,1068,1061,1057,1064,1060,1070,1068,1053,1060,1063,1058,1060,1058,1065,
	1062,1056,1058,1056,1059,1063,1063,1059,1060,1057,1052,1056,1058,1062,1058,1056,
	1058,1056,1063,1066,1055,1062,1054,1050,1058,1060,1057,1065,1056,1065,1059,1058,
	1058,1054,1051,1057,1054,1057,1060,1055,1057,1055,1047,1049,1051,1055,1057,1054,
	1050,1056,1052,1049,1054,1067,1052,1065,1059,1056,1043,1054,1053,1044,1058,1046,
	1051,1048,1047,1048,1053,1055,1061,1062,1064,1051,1045,1044,1040,1039,1038,1050,
	1041,1055,1047,1043,1046,1051,1045,1051,1046,1053,1055,1044,1053,1045,1040,1048,
	1058,1043,1053,1054,1038,1035,1045,1042,1035,1043,1049,1049,1050,1053,1051,1048,
	1051,1046,1049,1039,1052,1048,1055,1050,1051,1052,1043,1054,1037,1041,1041,1029,
	1040,1052,1033,1027,1036,1028,1044,1045,1039,1038,1032,1042,1025,1052,1036,1038,
	1038,1039,1045,1044,1038,1048,1049,1034,1041,1033,1021,1039,1039,1033,1046,1046,
	1026,1039,1042,1038,1034,1047,1042,1031,1039,1038,1028,1039,1028,1031,1028,1013,
	1023,1027,1037,1039,1034,1030,1020,1043,1050,1030,1028,1028,1022,1016,1031,1030,
	1018,1026,1020,1030,1030,1033,1033,1017,1020,1021,1044,1033,1044,1026,1026,1020,
	1027,1020,1044,1022,1015,1030,1017,1023,1021,1019,1012,1010,1030,1028,1020,1030,
	1038,1019,1031,1017,1020,1016,1006,1005,1000,1002,1007,992,996,990,987,994,
	988,1000,986,991,1002,1002,998,979,996,1006,1028,1000,998,999,1007,997,
	995,996,991,985,993,968,987,1001,1001,991,987,991,975,961,978,963,
	984,995,1001,994,970,1008,1026,1032,1028,1018,1002,992,988,996,998,1017,
	1007,1021,988,980,1012,993,1008,999,1016,976,1002,976,991,976,981,994,
	980,976,987,992,982,986,998,1013,1009,1002,989,984,980,963,963,952,
	937,956,962,972,959,924,950,933,939,945,935,942,949,936,943,965,
	932,934,921,912,931,915,937,935,928,919,924,
	924,924,924,924,924,924,924,924,924,924,924,924,924,924,924,924,
	924,924,924,924,924,924,924,924,924,924,924,924,924,924,924,924,
	924,924,924,924,924,924,924,924,924,924,924,924,924,924,924,924,
	924,924,924,924,924,924,924,924,924,924,924,924,924,924,924,924,
	924,924,924,924,924,924,924,924,924,924,924,924,924,924,924,924,
	924,924,924,924,924,924,924,924,924,924,924,924,924,924,924,924,
	924,924,924,924,924,924,924,924,924,924,924,924,924,924,924,924,
	924,924,924,924,924,924,924,924,924,924,924,924,924,924,924,924,
	924,924,924,924,924,924,924,924,924,924,924,924,924,924,924,924,
	924,924,924,924,924,924,924,924,924,924,924,924,924,924,924,924,
	924,924,924,924,924,924,924,924,924,924,924,924,924,924,924,924,
	924,924,924,924,924,924,924,924,924,924,924,924,924,924,924,924,
	924,924,924,924,924,924,924,924,924,924,924,924,924,924,924,924,
	924,924,924,924,924,924,924,924,924,924,924,924,924,924,924,924,
	924,924,924,924,924,924,924,924,924,924,924,924,924,924,924,924,
	924,924,924,924,924,924,924,924,924,924,924,924,924,924,924,924,
};

/* all 1080p mode use the same sht dgain table */
u32 ov2710_ae_sht_dgain_1080p[SHUTTER_DGAIN_TABLE_LENGTH] = {
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,
	1024,1024,1020,1014,1044,1042,1036,1034,1031,1024,1050,1047,1036,1027,1024,1049,
	1041,1039,1031,1023,1024,1050,1041,1040,1032,1024,1024,1052,1044,1043,1037,1029,
	1028,1024,1052,1047,1042,1033,1026,1024,1054,1047,1046,1040,1032,1032,1024,1058,
	1060,1050,1041,1044,1033,1024,1065,1056,1047,1048,1040,1030,1029,1024,1056,1056,
	1050,1038,1038,1031,1024,1066,1059,1049,1049,1042,1032,1031,1024,1060,1057,1055,
	1045,1044,1040,1031,1026,1024,1065,1066,1059,1045,1046,1040,1028,1027,1024,1064,
	1058,1056,1043,1040,1039,1027,1022,1024,1067,1062,1060,1052,1044,1048,1037,1031,
	1032,1024,1073,1072,1065,1056,1058,1050,1043,1043,1033,1024,1094,1080,1075,1071,
	1062,1056,1054,1043,1037,1033,1024,1073,1071,1069,1059,1052,1049,1042,1036,1034,
	1028,1024,1086,1084,1079,1071,1067,1063,1056,1054,1047,1039,1037,1033,1024,1095,
	1088,1078,1080,1069,1062,1061,1053,1046,1041,1034,1025,1024,1095,1087,1083,1081,
	1072,1072,1064,1054,1054,1047,1039,1041,1033,1024,1107,1102,1091,1089,1083,1074,
	1073,1065,1057,1057,1051,1044,1038,1031,1024,1117,1109,1104,1103,1093,1087,1085,
	1078,1073,1068,1059,1061,1052,1042,1042,1031,1024,1130,1118,1106,1106,1099,1095,
	1094,1082,1082,1076,1067,1069,1060,1048,1050,1038,1032,1032,1024,1125,1125,1114,
	1109,1104,1095,1098,1089,1081,1081,1076,1063,1066,1056,1049,1049,1039,1037,1031,
	1024,1158,1151,1140,1139,1131,1121,1122,1113,1109,1100,1093,1091,1083,1070,1071,
	1061,1053,1052,1042,1038,1029,1024,1024,1167,1159,1159,1150,1139,1144,1133,1128,
	1126,1116,1114,1108,1100,1099,1092,1080,1084,1074,1068,1067,1060,1053,1050,1042,
	1035,1034,1024,1180,1174,1167,1168,1158,1150,1146,1146,1134,1133,1128,1121,1117,
	1108,1106,1103,1093,1089,1085,1080,1073,1071,1066,1057,1054,1050,1041,1041,1032,
	1027,1024,1194,1195,1198,1189,1156,1178,1174,1169,1160,1162,1153,1145,1146,1137,
	1131,1130,1121,1120,1114,1105,1106,1098,1090,1092,1083,1077,1076,1068,1065,1060,
	1052,1053,1046,1037,1039,1030,1024,1270,1261,1257,1253,1244,1244,1236,1226,1228,
	1219,1212,1211,1202,1198,1194,1185,1184,1176,1167,1169,1159,1152,1152,1142,1140,
	1134,1125,1125,1117,1109,1110,1100,1094,1093,1083,1081,1075,1066,1067,1058,1050,
	1050,1041,1035,1033,1024,1354,1349,1338,1341,1332,1322,1323,1314,1307,1305,1296,
	1295,1289,1280,1280,1271,1261,1264,1253,1247,1245,1237,1236,1229,1218,1219,1211,
	1202,1203,1193,1187,1184,1175,1173,1167,1157,1159,1150,1141,1141,1132,1126,1124,
	1115,1113,1107,1099,1099,1091,1081,1083,1074,1068,1065,1057,1053,1049,1040,1039,
	1032,1023,1024,1496,1489,1490,1481,1476,1474,1464,1465,1456,1447,1449,1440,1432,
	1434,1425,1420,1419,1409,1408,1402,1394,1395,1387,1376,1379,1370,1363,1363,1354,
	1349,1347,1337,1338,1330,1320,1324,1314,1306,1307,1298,1292,1292,1281,1279,1276,
	1266,1267,1259,1250,1252,1243,1236,1237,1227,1222,1219,1211,1209,1204,1195,1196,
	1188,1180,1182,1173,1166,1166,1158,1155,1150,1142,1141,1134,1127,1127,1118,1112,
	1112,1102,1098,1095,1087,1085,1079,1070,1071,1063,1056,1056,1047,1041,1040,1030,
	1030,1024,1909,1901,1887,1869,1867,1846,1831,1826,1805,1796,1789,1766,1759,1744,
	1726,1724,1707,1690,1685,1665,1652,1643,1628,1615,1604,1585,1582,1567,1548,1547,
	1529,1511,1506,1486,1477,1463,1448,1442,1425,1408,1403,1386,1369,1364,1346,1335,
	1323,1306,1298,1287,1269,1260,1246,1228,1223,1204,1195,1182,1165,1157,1144,1126,
	1120,1104,1087,1079,1065,1051,1043,1024,
};

/* all 720p mode use the same sht dgain table */
u32 ov2710_ae_sht_dgain_720p[SHUTTER_DGAIN_TABLE_LENGTH] = {
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
	1024,1024,1024,1024,
	1024,1028,1020,1030,1039,1032,1011,1040,1040,1019,1024,1045,1027,1032,1036,1041,
	1037,1046,1029,1024,1056,1050,1032,1040,1053,1040,1048,1039,1024,1055,1049,1026,
	1037,1033,1041,1044,1041,1023,1024,1056,1037,1039,1045,1024,1043,1049,1029,1019,
	1024,1049,1044,1048,1034,1024,1063,1057,1044,1054,1043,1057,1058,1059,1046,1053,
	1041,1049,1056,1057,1031,1037,1038,1052,1056,1057,1035,1037,1041,1049,1050,1050,
	1032,1034,1035,1046,1052,1058,1028,1036,1037,1053,1068,1069,1043,1050,1047,1024,
	1060,1059,1046,1040,1041,1023,1024,1061,1045,1057,1045,1033,1041,1024,1069,1072,
	1053,1047,1050,1027,1024,1065,1036,1046,1054,1031,1041,1044,1024,1093,1079,1058,
	1074,1060,1044,1059,1033,1057,1069,1058,1051,1049,1036,1044,1044,1060,1067,1063,
	1056,1062,1053,1032,1038,1034,1062,1067,1067,1043,1043,1046,1025,1019,1024,1061,
	1053,1062,1050,1037,1044,1031,1018,1030,1028,1062,1069,1070,1048,1050,1055,1034,
	1033,1039,1024,1074,1081,1069,1055,1062,1056,1039,1041,1041,1021,1024,1094,1074,
	1072,1080,1062,1057,1063,1052,1039,1046,1040,1024,1098,1093,1063,1063,1069,1049,
	1048,1052,1035,1027,1037,1024,1091,1101,1092,1072,1084,1077,1055,1061,1062,1039,
	1046,1049,1024,1105,1111,1083,1079,1086,1066,1059,1066,1046,1035,1042,1031,1017,
	1024,1094,1081,1085,1080,1065,1066,1068,1047,1051,1053,1034,1037,1038,1018,1019,
	1024,1102,1104,1107,1086,1081,1092,1072,1069,1078,1057,1051,1060,1045,1039,1050,
	1035,1024,1135,1121,1101,1119,1106,1091,1098,1088,1073,1084,1079,1057,1066,1067,
	1036,1048,1051,1024,1144,1147,1118,1129,1135,1100,1113,1113,1086,1095,1101,1071,
	1080,1083,1054,1064,1064,1041,1044,1051,1024,1162,1166,1141,1142,1146,1124,1118,
	1124,1100,1106,1101,1082,1094,1087,1061,1072,1062,1042,1049,1042,1027,1030,1024,
	1170,1173,1166,1152,1158,1150,1138,1140,1139,1127,1113,1120,1111,1094,1102,1095,
	1076,1083,1079,1059,1064,1063,1040,1046,1045,1024,1194,1197,1173,1179,1181,1157,
	1160,1164,1141,1144,1149,1125,1126,1132,1108,1109,1114,1092,1091,1097,1075,1074,
	1080,1058,1057,1063,1042,1040,1046,1025,1024,1232,1207,1207,1214,1190,1189,1197,
	1173,1173,1180,1157,1157,1163,1139,1141,1146,1122,1124,1130,1105,1107,1112,1088,
	1091,1094,1071,1074,1076,1054,1058,1060,1037,1042,1041,1020,1025,1024,1248,1257,
	1254,1234,1244,1237,1220,1229,1220,1205,1215,1203,1192,1202,1186,1179,1188,1168,
	1166,1174,1151,1153,1157,1134,1139,1140,1118,1126,1122,1105,1113,1104,1091,1100,
	1084,1080,1088,1066,1067,1072,1049,1056,1053,1035,1044,1034,1024,1364,1342,1339,
	1348,1322,1325,1331,1303,1312,1309,1287,1298,1289,1274,1286,1268,1264,1272,1249,
	1248,1255,1230,1237,1239,1213,1223,1217,1198,1207,1196,1186,1196,1177,1171,1180,
	1158,1158,1164,1141,1147,1148,1125,1134,1128,1110,1121,1107,1099,1109,1087,1085,
	1093,1069,1072,1074,1052,1059,1054,1037,1046,1034,1024,1511,1486,1488,1498,1470,
	1476,1481,1454,1464,1462,1439,1455,1441,1428,1442,1423,1418,1429,1403,1405,1413,
	1385,1392,1397,1370,1381,1376,1353,1367,1358,1343,1355,1338,1331,1342,1320,1318,
	1328,1303,1304,1310,1286,1293,1292,1270,1280,1274,1255,1265,1253,1242,1254,1235,
	1230,1241,1217,1217,1223,1199,1204,1208,1183,1192,1190,1170,1179,1172,1155,1168,
	1152,1145,1153,1134,1130,1138,1114,1117,1124,1100,1103,1106,1084,1089,1090,1069,
	1076,1074,1055,1060,1056,1039,1046,1038,1024,1867,1795,1722,1685,1618,1552,1511,
	1437,1376,1330,1263,1203,1154,1084,1024,
};

u8 ov2710_dlight[2] = {128,4};
